<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="dao.CommDAO"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>信息列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<STYLE type=text/css>
BODY {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
TD {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
TH {
	FONT-FAMILY: 宋体; COLOR: #011f77; FONT-SIZE: 13px
}
BODY {
	BACKGROUND-COLOR: #ffffff; MARGIN: 0px
}
</STYLE>

<SCRIPT language=JavaScript src="1_files/swf.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="1_files/gg.css">
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  window.open(selObj.options[selObj.selectedIndex].value);
  if (restore) selObj.selectedIndex=0;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</SCRIPT>

<SCRIPT language=JavaScript src=""></SCRIPT>

<META name=GENERATOR content="MSHTML 8.00.7601.17720">
<style type="text/css">
<!--
.STYLE1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
  </head>
  
  
   <SCRIPT language=JavaScript>
function rearchs(){

  if (fromss.typeid.value==""){
  
    alert("请选择类别!");
	return false;
  
  }

}


</SCRIPT>
 
  <%CommDAO dao = new  CommDAO(); 
  String uid = "";
if(session.getAttribute("yz")!=null){
	HashMap map = (HashMap)session.getAttribute("yz");
	 uid = map.get("id").toString();
}

%>

  <body>
  <jsp:include page="head.jsp"></jsp:include>
<TABLE border=0 cellSpacing=0 cellPadding=0 width=1004 align=center>
  <TBODY>
  <TR>
    <TD class=bk1 vAlign=top align=middle>
      <TABLE border=0 cellSpacing=0 cellPadding=0 width=968 align=center>
        <TBODY>
        <TR>
          <TD bgColor=#edfaff vAlign=top width=220 align=left>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=220>
              <TBODY>
              <TR>
                <TD height=6></TD></TR>
              <TR>
                <TD vAlign=top align=middle>
                  
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=220>
              <TBODY>
              <TR>
                <TD height=33 vAlign=top background=1_files/gg1.gif 
                align=left>&nbsp;</TD></TR>
              <TR>
                <TD vAlign=center background=1_files/gg2.gif align=middle>
                  <TABLE border=0 cellSpacing=0 cellPadding=0 width="89%">
                    <TBODY>
                    <TR>
                      <TD vAlign=top align=middle>
                        <TABLE border=0 cellSpacing=0 cellPadding=0 width="90%" 
                        background=1_files/eca_gov_cn.htm>
                          <TBODY>
                          <TR>
                            <TD vAlign=center align=right>
                              <TABLE class=blue13 border=0 width=181>
                                <TBODY>
                                <TR>
                                <TD vAlign=center width=175 align=middle>
                                <DIV align=center></DIV>
                                <DIV 
                                style="WIDTH: 191px; HEIGHT: 140px; OVERFLOW: hidden" 
                                id=demo>
                                <DIV id=demo1>
                               <%
                               
                               String noticesql = "select * from notice order by id desc"; 
                               	ArrayList<HashMap> noticelist = (ArrayList)dao.select(noticesql);
                               	if(noticelist.size()!=0){
                               		for(HashMap noticem :noticelist){%>
                               		
                               		<TABLE border=0 cellSpacing=0 cellPadding=0 
                                width="100%">
                                <TBODY>
                                <TR>
                                <TD class=blackhui vAlign=top align=left><SPAN 
                                class=green13>·</SPAN><A class=blue13 
                                href="list.jsp?t=1"><%=noticem.get("title") %></A><br/><%=noticem.get("savetime") %></TD></TR>
                                <TR>
                                <TD class=blue21 height=10 vAlign=top 
                                align=left></TD></TR></TBODY></TABLE>
                               		
                             <%}	}%>
                             
                             
                             

                           		</DIV>
                                <DIV id=demo2></DIV></DIV>
                                <SCRIPT>
var speed=40
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetTop-demo.scrollTop<=0)
demo.scrollTop-=demo1.offsetHeight
else{
demo.scrollTop++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
                        </SCRIPT>
                                </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
                    <TR>
                      <TD height=31 vAlign=center align=right><A 
                        href="list.jsp?t=1"><IMG 
                        border=0 src="1_files/more.gif" width=63 
                      height=23></A></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD bgColor=#a1e1fc height=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
          <TD vAlign=top align=right>
            <TABLE border=0 cellSpacing=0 cellPadding=0 width=198>
              <TBODY>
              <TR>
                <TD height=6></TD></TR></TBODY></TABLE>
            <TABLE border=0 cellSpacing=1 cellPadding=0 width=741 
            bgColor=#c8f3fc>
              <TBODY>
              <TR>
                <TD bgColor=#ffffff height=245 vAlign=top align=left>
                  <TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
                    <TBODY>
                    
                    <TR>
                      <TD height=18 colSpan=2></TD></TR>
                    <TR vAlign=top align=middle>
                      <TD colSpan=2>
                        <TABLE border=0 cellSpacing=0 cellPadding=0 
                          width="92%"><TBODY>
                          <TR>
                            <TD class=blacknews height=450 vAlign=top 
                              align=left>
                              
                              <% 
                              String type=request.getParameter("t");
                              System.out.println("bb==="+type);
                               if(type.equals("1")){
                               	ArrayList<HashMap> noticelist1 = (ArrayList)dao.select(noticesql);
                               	if(noticelist1.size()!=0){
                               		for(HashMap noticem1 :noticelist1){%>
                              
                              <SPAN class=blue13news><SPAN 
                              class=blackhui><SPAN 
                              class=green13>·</SPAN></SPAN></SPAN> <A 
                              class=blacknews 
                              href="noticex.jsp?id=<%=noticem1.get("id") %>"><%=noticem1.get("title") %></A> 
                              		
                              <SPAN 
                              class=blue13news2>[<%=noticem1.get("savetime") %>]</SPAN><BR>                              
                              
                              		<%}}
                               	}
                               %>
                               
                              <% 
                               if(type.equals("4")){
                                String bxsql = "select * from baoxiu order by id desc"; 
                                	ArrayList<HashMap> bxlist = (ArrayList)dao.select(bxsql);
                                	if(bxlist.size()!=0){
                                		for(HashMap bm:bxlist){%>
                              <SPAN class=blue13news><SPAN 
                              class=blackhui><SPAN 
                              class=green13>·</SPAN></SPAN></SPAN> <a href="baoxiux.jsp?id=<%=bm.get("id") %>">
                              <%HashMap mmmm = dao.select("select * from sysuser where id="+bm.get("author")).get(0); %>
                              		【<%=mmmm.get("uname") %>】-
                              <%=bm.get("content") %></a>
                               <SPAN 
                              class=blue13news2>[<%=bm.get("savetime") %>]</SPAN><BR>        
                              		<%}}%>
                              		<%if(!uid.equals("")){ %>
                              		   <form action="/wuyegl/wuyegl?ac=addbaoxiu"  method="post" name="f8">
                              			报修内容<textarea rows="5" cols="60" id="bxcontent" name="bxcontent"></textarea><br/>
                              			<input type="button" onclick="bxck()" value="提交">
                              		</form>
                              		<script type="text/javascript">
                              			function bxck(){
                              				var a = document.getElementById("bxcontent").value;
                              				if(a==""){
                              				alert("内容不能为空");
                              				return false;
                              				}else{
                              					document.f8.submit();
                              				}
                              			}
                              		</script>
                               <% 	}}
                               %>
                               
                               <% 
                               if(type.equals("5")){
                               String wyfsql = "select * from wyf where uid='"+uid+"' and status=0 order by id desc";
                                	ArrayList<HashMap> wyflist = (ArrayList)dao.select(wyfsql);
                                	if(wyflist.size()!=0){
                                		for(HashMap wyfm:wyflist){%>
                             
                              <SPAN class=blue13news><SPAN 
                              class=blackhui><SPAN 
                              class=green13>·</SPAN></SPAN></SPAN>[<%=wyfm.get("type") %>] <%=wyfm.get("je") %>&nbsp;&nbsp;&nbsp;<%=wyfm.get("nian") %>年<%=wyfm.get("yue") %>月
                             <BR>                              
                              
                              		<%}}
                               	}
                               %>
                               
                              <BR></TD></TR>
                         </TBODY></TABLE>
                        <TABLE border=0 cellSpacing=0 cellPadding=0 
width="100%">
                          <TBODY>
                          <TR>
                            <TD>&nbsp;</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
              <TR>
                <TD height=16 
      colSpan=2></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD height=13 colSpan=2></TD></TR></TBODY></TABLE>
      <jsp:include page="foot.jsp"></jsp:include>
  </body>
</html>
